import 'dart:convert';

import 'package:enterprise_v6_app/app/data/entities/application/emergency/emergency_task_instructions_entity.dart';
import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/emergency_task_process_nodes_entity.g.dart';
export 'package:enterprise_v6_app/generated/json/emergency_task_process_nodes_entity.g.dart';

/// 演练计划流程
@JsonSerializable()
class EmergencyTaskProcessNodesEntity {
  EmergencyTaskProcessNodesEntity();

  factory EmergencyTaskProcessNodesEntity.fromJson(Map<String, dynamic> json) => $EmergencyTaskProcessNodesEntityFromJson(json);
  late String appRoutingAddress = '';
  late String businessId = '';
  late int childrenControlType = 0;
  late String circulationAttribute = '';
  late String createBy = '';
  late String createById = '';
  late String createDate = '';
  late String deleted = '';
  late int disposalType = 0;
  late List<EmergencyTaskInstructionsEntity> emergencyTaskInstructions = [];
  late String formId = '';
  late String iconAddress = '';
  late String id = '';
  late String nodeDescription = '';
  late String nodeId = '';
  late String nodeName = '';
  late String nodeNumber = '';
  late int nodeType = 0;
  late int parentControlType = 0;
  late String pid = '';
  late String processEncoding = '';
  late String rejectNodeId = '';
  late String subordinateCirculationAttribute = '';
  late String systemFormId = '';
  late String updateBy = '';
  late String updateById = '';
  late String updateDate = '';
  late int warningLevel = 0;
  late String webRoutingAddress = '';

  /// 是否是展开状态
  late bool isExpanded = false;

  /// 是否选中
  late bool isSelected = false;

  Map<String, dynamic> toJson() => $EmergencyTaskProcessNodesEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
